﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Threading;
using USpell.Controls;
using System.Windows.Markup;

namespace USpell
{
    public partial class MainPage : PhoneApplicationPage
    {
        // 构造函数
        public MainPage()
        {
            InitializeComponent();
            Uri fileUri = new Uri("/USpell;component/Views/PanoramaPage.xaml", UriKind.Relative);
            System.Windows.Resources.StreamResourceInfo streamInfo = System.Windows.Application.GetResourceStream(fileUri);

            if ((streamInfo != null) && (streamInfo.Stream != null))
            {
                using (System.IO.StreamReader reader = new System.IO.StreamReader(streamInfo.Stream))
                {

                    //var cc = reader.ReadToEnd();
                    try
                    {
                        var re = System.Windows.Markup.XamlReader.Load(reader.ReadToEnd());
                    }
                    catch (Exception we)
                    {
                        var a = we.Message;
                    }
                }

            }

        }


        private void SlideCanvas_StoryFinishEvent(object sender, EventArgs e)
        {
           
            this.NavigationService.Navigate(new Uri("", UriKind.Relative));
        }
    }
}